package cn.bonoon.kernel.support;
/**
 * 操作符支持
 * @author jackson
 *
 */
public interface OperandSupport {
	int OPERAND_NOT = -1;
	int OPERAND_INSERT = 0;
	int OPERAND_UPDATE = 1;
	int OPERAND_DELETE = 2;
	int OPERAND_FORBID = 3;
	int OPERAND_RESUME = 4;
	int OPERAND_MOVE_UP = 5;
	int OPERAND_MOVE_DOWN = 6;
	int OPERAND_MOVE_IN = 7;
	int OPERAND_MOVE_OUT = 8;
	
	String OPERAND_NAMES[] = {
			/*-0-*/ "添加",
			/*-1-*/ "修改",
			/*-2-*/ "删除", 
			/*-3-*/ "禁止", 
			/*-4-*/ "启用", 
			/*-5-*/ "上移", 
			/*-6-*/ "下移", 
			/*-7-*/ "移出", 
			/*-8-*/ "移入", 
			/*-9-*/ "", 
			/*-10-*/ "", 
			/*-11-*/ "", 
			/*-12-*/"保存", 
			/*-13-*/"保存"
			};
	
	int DIALOG_DETAIL = 100;
	int DIALOG_INSERT = 0; // 101;
	int DIALOG_UPDATE = 1; // 102;
	
	int SAVE_INSERT = 0; // 10;
	int SAVE_UPDATE = 1; // 11;
//	/**
//	 * 当前操作的名称
//	 * @return
//	 */
//	String getOperateName();
//	/**
//	 * 当前操作的操作编码
//	 * @return
//	 */
//	int getOperandCode();
}
